package nacos_authoa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import nacos_authoa.mapper.SysUserMsgMapper;
import nacos_authoa.model.SysUserMsg;
import nacos_authoa.service.SysUserMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author A夜兔A
 * @data 2022年04月11日 13:59
 */
@Service
public class SysUserMsgServiceImpl extends ServiceImpl<SysUserMsgMapper, SysUserMsg> implements SysUserMsgService {

    @Autowired
    private SysUserMsgMapper sysUserMsgMapper;

    @Override
    public List<String> getPermsList(Integer userId) {
        List<String> perms=sysUserMsgMapper.getPermsByUserId(userId);
        return perms;

    }
}
